// Progress
tdr-progress(ng-if="vm.showProgress", info="vm.progressInfo")

// Add alert hook
#addAlert(ng-if="vm.showAddAlert" flex)
	#addAlertBackground(flex layout-fill)
		#addAlertInfo(layout="column" flex layout-fill layout-align="center center")
			h3 {{vm.addAlertText}}
			md-button.md-primary(ng-click="vm.closeAddAlert()") OK

// Issues list
issues-list(
	ng-if="!vm.showProgress && vm.toShow === 'showIssues'"
	issues-to-show="vm.issuesToShow"
	account="vm.account"
	model="vm.model"
	revision="vm.revision"
	filter-text="vm.filterText"
	filter-chips="vm.filterChips"
	import-bcf="vm.importBcf(file)"
	on-edit-issue="vm.editIssue(issue)"
	content-height="vm.setContentHeight(height)"
	menu-option="vm.selectedMenuOption"
	issue-display="vm.issueDisplay")

// Issue
issue(
	ng-if="!vm.showProgress && vm.toShow === 'showIssue' && vm.modelSettings !== undefined"
	account="vm.account"
	data="vm.selectedIssue"
	model="vm.model"
	exit="vm.editIssueExit(issue)"
	model-settings="vm.modelSettings"
	event="vm.event"
	content-height="vm.setContentHeight(height)"
	selected-objects="vm.selectedObjects"
	revision="vm.revision"
	set-initial-selected-objects="vm.setInitialSelectedObjects({selectedObjects: selectedObjects})"
	user-job="vm.modelUserJob"
	available-jobs="vm.availableJobs")


#issuesAddButton(
	ng-if="vm.showAddButton && !vm.showProgress"
	layout="row"
	layout-align="left center"
	layout-margin)
	div(
		style="text-align: center;"
		flex,
		layout-align="center center")

		div(layout="row" ng-if="vm.importingBCF" layout-align="center center")
			span(flex="50").addHint Uploading BCF...
			md-progress-circular.importBCFLoading(md-mode="indeterminate", md-diameter="15")

		span.addHint(ng-if="!vm.canAddIssue") You don't have permission to add an issue
		span.addHint(ng-if="vm.canAddIssue && !vm.modelLoaded()") You can add an issue after model load

	md-button.md-accent.md-fab.md-mini(
		id="addIssue"
		aria-label="Add"
		ng-click="vm.editIssue()"
		ng-disabled="!vm.canAddIssue || !vm.modelLoaded()")

		md-icon.angular-material-icons add


